import request from '@/utils/request'

//获取资源收藏分页列表
export function getResCollectPageList(data) {
	return request({
		method: 'get',
		url: 'tbNetCollect/queryPageList',
		params: data
	})
}

//获取资源收藏所有列表
export function getResCollectAllList(data) {
	return request({
		method: 'get',
		url: 'tbNetCollect/queryList',
		params: data
	})
}

//获取资源收藏详情
export function getResCollectDetail(id) {
	return request({
		method: 'get',
		url: 'tbNetCollect/query/' + id
	})
}

//判断资源收藏状态
export function judgeResCollectStatus(id) {
	return request({
		method: 'get',
		url: 'tbNetCollect/diskIsCollect/' + id
	})
}

//添加资源收藏
export function addResCollect(data) {
	return request({
		method: 'post',
		url: 'tbNetCollect/add',
		data
	})
}

//删除资源收藏 - 通过id
export function delResCollectById(id) {
	return request({
		method: 'get',
		url: 'tbNetCollect/delete/' + id
	})
}

//批量移动资源库成员
export function delResCollectByResId(id) {
	return request({
		method: 'get',
		url: 'tbNetCollect/deleteByPcId/' + id
	})
}